package com.tyut.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tyut.system.mapper.TyutSoftnessMapper;
import com.tyut.system.domain.TyutSoftness;
import com.tyut.system.service.ITyutSoftnessService;

/**
 * 软著Service业务层处理
 * 
 * @author tyut
 * @date 2023-11-21
 */
@Service
public class TyutSoftnessServiceImpl implements ITyutSoftnessService 
{
    @Autowired
    private TyutSoftnessMapper tyutSoftnessMapper;

    /**
     * 查询软著
     * 
     * @param id 软著主键
     * @return 软著
     */
    @Override
    public TyutSoftness selectTyutSoftnessById(Long id)
    {
        return tyutSoftnessMapper.selectTyutSoftnessById(id);
    }

    /**
     * 查询软著列表
     * 
     * @param tyutSoftness 软著
     * @return 软著
     */
    @Override
    public List<TyutSoftness> selectTyutSoftnessList(TyutSoftness tyutSoftness)
    {
        return tyutSoftnessMapper.selectTyutSoftnessList(tyutSoftness);
    }

    /**
     * 新增软著
     * 
     * @param tyutSoftness 软著
     * @return 结果
     */
    @Override
    public int insertTyutSoftness(TyutSoftness tyutSoftness)
    {
        return tyutSoftnessMapper.insertTyutSoftness(tyutSoftness);
    }

    /**
     * 修改软著
     * 
     * @param tyutSoftness 软著
     * @return 结果
     */
    @Override
    public int updateTyutSoftness(TyutSoftness tyutSoftness)
    {
        return tyutSoftnessMapper.updateTyutSoftness(tyutSoftness);
    }

    /**
     * 批量删除软著
     * 
     * @param ids 需要删除的软著主键
     * @return 结果
     */
    @Override
    public int deleteTyutSoftnessByIds(Long[] ids)
    {
        return tyutSoftnessMapper.deleteTyutSoftnessByIds(ids);
    }

    /**
     * 删除软著信息
     * 
     * @param id 软著主键
     * @return 结果
     */
    @Override
    public int deleteTyutSoftnessById(Long id)
    {
        return tyutSoftnessMapper.deleteTyutSoftnessById(id);
    }
}
